package com.example.domet.utils;

import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;

public class Md5Utils {
    public static String md5(String target){
        return DigestUtils.md5DigestAsHex(target.getBytes(StandardCharsets.UTF_8)).substring(0,16);
    }
}
